layui.define(['layer'], function (exports) {
    var quesElement = {
        radio: {
            id: '',
            index: '',
            title:'',
            type:"radio",
            config: {
                options: [
                    {
                        text: '示例1',
                        value: '示例1',
                        checked: false,
                    },
                    {
                        text: '示例2',
                        value: '示例2',
                        checked: false,
                    }
                ],
                required: true,
                logic: 0
            }
        },
        checkbox: {
            id: '',
            index: '',
            title:'',
            type:"checkbox",
            config: {
                options: [
                    {
                        text: '示例1',
                        value: 'value1',
                        checked: false,
                    },
                    {
                        text: '示例2',
                        value: 'value2',
                        checked: false,
                    }
                ],
                required: true,
                logic: 0
            }
        },
        select: {
            id: '',
            index: '',
            title:'',
            type:"select",
            config: {
                options: [
                    {
                        text: '示例1',
                        value: 'value1',
                        checked: false,
                    },
                    {
                        text: '示例2',
                        value: 'value2',
                        checked: false,
                    }
                ],
                required: true,
                logic: 0
            }
        },
        cascade: {
            id: '',
            index: '',
            title:'',
            type:"cascade",
            config: {
                options: [
                        {
                            text: '示例1',
                            value: 'value1',
                            options: []
                        },
                        {
                            text: '示例2',
                            value: 'value2',
                            options: []
                        }
                ],
                required: true,
                logic: 0
            }
        },
        input: {
            id: '',
            index: '',
            type: "input",
            title:'',
            config: {
                required: true,
                verify: '',
                logic: 0
            }
        },
        textarea: {
            id: '',
            index: '',
            type: "textarea",
            title:'',
            config: {
                required: true,
                logic: 0
            }
        },
        mulinput: {
            id: '-1',
            index: '-1',
            type: "mulinput",
            title:'',
            config: {
                options: [
                    {
                        text: '示例1',
                        value: 'value1',
                    },
                    {
                        text: '示例2',
                        value: 'value2',
                    }
                ],
                required: true,
                logic: 0
            }
        },
        date: {
            id: '',
            index: '',
            title:'',
            type:"date",
            config: {
                required: true,
                logic: 0
            }
        },
        rate: {
            id: '',
            index: '',
            type: "rate",
            title:'',
            config: {
                required: true,
                length: 5,
                // value: 1,
                half: false,
                text: true,
                arr: {
                    "1": "a",
                    "2": "b",
                    "3": "c",
                    "4": "d",
                    "5": "e"
                },
                logic: 0
            }
        },
        file: {
            id: '-1',
            index: '-1',
            label: "上传文件",
            tag: "file",
            tagIcon: 'file',
            placeholder: "请输入",
            defaultValue: null,
            labelWidth: null,
            disabled: false,
            required: true,
            document: '',
            uploadUrl: '',
        }
        , c0: {
            list: ['c1', 'c2', 'c3']
        }
        , c1: {
            name: "选择题",
            type: ['radio', 'checkbox', 'select'],
            list: ['radio.单选题', 'checkbox.多选题', 'select.下拉选择', 'cascade.级联选择']
        }
        , c2: {
            name: "填空题",
            type: ['input', 'textarea'],
            list: ['input.单项填空', 'textarea.简答题','mulinput.多项填空']
        }
        , c3: {
            name: "其他",
            type: ['date', 'rate', 'file'],
            list: ['date.日期', 'rate.评分', 'file.附件']
        },
        verify: {
            'phone':'手机号',
            'identity':'身份证',
            'email':'邮箱',
            'url':'网址',
            'number':'数字',
            'date':'日期',
            'plate_nbr':'车牌号'
        },
        iconClass: {
            'phone':'layui-icon-cellphone-fine',
            'identity':'layui-icon-username',
            'email':'layui-icon-email',
            'url':'layui-icon-link',
            'number':'layui-icon-rmb',
            'date':'layui-icon-date',
            'plate_nbr':'layui-icon-cart-simple'
        }
    };
    exports('quesElement', quesElement);

});